import http from '/@/utils/http';

/**
 * 消息中心api接口集合
 * @method messageListApi 消息中心分页查询
 * @method getUnreadNumApi 获取未读消息数量
 * @method readMessageApi 消息已读
 */

export const messageListApi = async (params: any) => {
  return await http.post(`/system/mobile/sysMessageInfo/pageList`, params)
}

export const getUnreadNumApi = async () => {
  return await http.get(`/system/mobile/sysMessageInfo/getUnreadNum`)
}

export const readMessageApi = async (params: any) => {
  return await http.post(`/system/mobile/sysMessageInfo/readMessage`, params)
}